/*
 * @Author: 肖思汗 
 * @Date: 2025-06-16 09:45:46 
 * @Last Modified by: 肖思汗
 * @Last Modified time: 2025-07-29 09:59:56
 */


.preView2D3D {
    width: 710rpx;
    padding: 10rpx 10rpx 20rpx 16rpx;
    overflow: visible;
    position: fixed;
    top: 50%;
    left: 200%;
    transform: translate(-50%, -50%);
    border-radius: 40rpx;
    box-sizing: border-box;
    z-index: 1002 !important;

    &.show {
        left: 50%;
    }

    &.showText {
        top: -200rpx;
    }

    .switchBtn {
        display: inline-block;
        justify-content: center;
        align-items: center;
        position: relative;
        background-color: #F2F2F2;
        border-radius: 40rpx;
        margin: 10px auto;
        left: 50%;
        transform: translate(-50%, 0%);

        .btn {
            display: inline-block;
            padding: 10rpx 20rpx;
            border-radius: 40rpx;
            font-size: 32rpx;
            line-height: 40rpx;
            border: 0rpx;
            text-align: center;
            font-weight: bold;
            color: #333333;


            &.active {
                background-color: #fd7901;
                color: #ffffff;
            }
        }
    }

    .renderer {
        position: relative;
        margin: 10rpx 0rpx;
        width: 680rpx;
        height: 680rpx;
        border-radius: 42rpx;
        border: 1rpx solid #3A473F;
        overflow: hidden;

        .threeCanvas {
            border-radius: 42rpx;
            background-color: #FFFFFF;
            // background-color: #FF8888;
        }

        .arrowBtn {
            width: 70rpx;
            height: 70rpx;
            cursor: pointer;
            background-color: #FFFFFF;
            border-radius: 10rpx;
            box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.15);
            z-index: 1;

            .arrow {
                width: 20rpx;
                height: 20rpx;
                border-top: 4rpx solid #666;
                border-right: 4rpx solid #666;
                position: absolute;
                top: 22rpx;
                left: 22rpx;
                transform-origin: 50% 50%;

                &.left {
                    transform: rotate(-135deg);
                }

                &.right {
                    transform: rotate(45deg);
                }
            }
        }

        .leftArrow {
            .arrowBtn;
            position: absolute;
            left: 10rpx;
            top: 50%;
            transform: translate(0%, -50%);
        }

        .rightArrow {
            .arrowBtn;
            position: absolute;
            right: 10rpx;
            top: 50%;
            transform: translate(0%, -50%);
        }

    }

    .btnGroup {
        display: flex;
        justify-content: space-evenly;
        margin: 20rpx 0;

        .btn {
            width: 240rpx;
            height: 80rpx;
            padding: 10rpx 0rpx;
        }
    }


    .close {
        width: 56rpx;
        height: 56rpx;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translate(-50%, 50rpx);
        z-index: 1;
    }

}